package entity

import (
	"shqsoft.cn/pasnj/base"
)

type ConfJsYwlx struct {
	ID   int    `gorm:"AUTO_INCREMENT;primary_key;column:YWID;"`
	YWMC string `gorm:"column:YWMC"`
	TYPE int    `gorm:"column:TYPE"`
}

//基数调整业务配置表
func (ConfJsYwlx) TableName() string {
	return "T_CONF_JS_YWLX"
}

//  BaseYgjsTz 基数调整
type BaseYgjsTz struct {
	ID         int        `gorm:"AUTO_INCREMENT;primary_key;column:JLID"` //
	LSH        string     `gorm:"column:LSH"`
	EMID       int        `gorm:"column:EMID"`
	User       User       `gorm:"ForeignKey:EMID"`
	DTID       int        `gorm:"column:DTID"`
	YWID       int        `gorm:"column:YWID"`
	ConfJsYwlx ConfJsYwlx `gorm:"ForeignKey:YWID"`
	SDJS       float64    `gorm:"column:SDJS"`
	RJJS       *float64   `gorm:"column:RJJS"`
	ACID       *int       `gorm:"column:ACID"`
}

//TableName 基数调整
func (BaseYgjsTz) TableName() string {
	return "T_BASE_YGJS_TZ"

}

//基数调整--业务类型配置表
func ConfJsYwlxEF() base.EntityFunc {
	return func() interface{} {
		entity := ConfJsYwlx{}
		return &entity
	}
}

//基数调整--业务类型配置表
func ConfJsYwlxESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ConfJsYwlx
		return &entities
	}
}

//基数调整
func BaseYgjsTzEF() base.EntityFunc {
	return func() interface{} {
		entity := BaseYgjsTz{}
		return &entity
	}
}

//基数调整
func BaseYgjsTzESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []BaseYgjsTz
		return &entities
	}
}
func init() {
	relationship := []string{"ConfJsYwlx", "User"}
	base.DaoPoolObj.Put("ConfJsYwlx", base.NewDefaultDao(ConfJsYwlxEF(), ConfJsYwlxESF(), nil))
	base.DaoPoolObj.Put("BaseYgjsTz", base.NewDefaultDao(BaseYgjsTzEF(), BaseYgjsTzESF(), relationship))
}
